package xx.boot.auth.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoleController {

    @SaCheckRole("super-admin")
    @RequestMapping("testRole")
    public String testRole() {
        return "test Role";
    }

}
